/**
 * 输出接口错误提醒
 * @param err 错误结构
 */
export const errMessage = (err: string) => {
  console.error(err + 'httperrpr')
}

export const consoleLog = (title: string, version: string) =>
  console.log(
    `%c ${title} %c ${version} `,
    'padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;',
    'padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;'
  )
import { app } from '../main'
export const consoleMessage = () => {
  consoleLog('版本', 'V' + import.meta.env.VITE_VERSION)
  console.log(`%c--vue版本:${app.version}`, 'color: green;')
  consoleLog('环境', import.meta.env.VITE_ENV)
}
